﻿using System;
using System.ComponentModel;

using BizElements.BusinessLayer;

namespace BizElements.BusinessLayer
{
    /// <summary>Generic event arguments. Passes a value from publisher to subsribers.</summary>
    public sealed class EventArgs<T> : EventArgs
    {
        /// <summary>Initializes a new instance of generic <b>EventArgs(T)</b> class.</summary>
        /// <param name="item">An item passed from publisher to subscribers.</param>
        public EventArgs(T item)
        {
            this.Item = item;
        }

        /// <summary>Gets item passed passed from publisher to subscribers.</summary>
        public T Item { get; private set; }
    }
}
